//
//  YRRangeViewViewController.swift
//  YRProject
//
//  Created by 薛永伟 on 2019/10/8.
//  Copyright © 2019 XueYongWei. All rights reserved.
//

import UIKit

class YRRangeViewViewController: UIViewController,StoryboardLoadable {

    lazy var demoView: YRRangeView = {
        let view = YRRangeView()
//        let recognizer = YRRangeView.GestureRecognizer.init()
//        recognizer.addActionBlock({ (some) in
//            print(some)
//        })
//        view.addGestureRecognizer(recognizer)
        return view
    }()
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        view.backgroundColor = .white

        view.addSubview(demoView)
        demoView.snp.makeConstraints { (make) in
            make.center.equalToSuperview()
            make.width.equalTo(300.scaleLength)
            make.height.equalTo(70.scaleLength)
        }
        
        YRAPI.Domain.Default.commonHeader
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.
        // Pass the selected object to the new view controller.
    }
    */

}
